package it.uniroma1.di.machinelearning;

import weka.classifiers.Classifier;
import weka.classifiers.bayes.NaiveBayes;
import weka.core.Instances;

public class NaiveBayesRunnable extends ClassifierRunnable{

	@Override
	public Classifier createAndBuildClassifier(Instances instances)
			throws Exception {
		NaiveBayes naiveBayes = new NaiveBayes();
		naiveBayes.setDebug(true);
		naiveBayes.buildClassifier(instances);
		return naiveBayes;
	}

}
